﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SistemaInventarioMVC.Models.Entidades
{
    [Table("DetalleSalidaAlmancen")]
    public class DetalleSalidaAlmancen
    {
        [Key]
        [Column(Order=1)]
        public Int32 SalidaAlmacenID { get; set; }

        [Key]
        [Column(Order=2)]
        public Int32 ArticuloID { get; set; }

        [Column]
        public Int32 Cantidad { get; set; }

        //Propiedades de navegacion
        [ForeignKey("SalidaAlmacenID")]
        public virtual CabeceraSalidaAlmacen CabeceraSalidaAlmacen { get; set; }

        [ForeignKey("ArticuloID")]
        public Articulo Articulo { get; set; }
    }
}